package com.example.pattern.singleton;


/**
 *  饿汉式（线程安全，但可能浪费资源）
 * @Auth: FM_南风
 * @Date: 2024/6/22
 **/
public class SingletonA {
    private static final SingletonA INSTANCE = new SingletonA();

    private SingletonA() {}

    public static SingletonA getInstance() {
        return INSTANCE;
    }
}